HAL ICACHE constants migration ¶
This section provides information about the HAL ICACHE constants migration.
Note
For the following ICACHE constants, which were previously defined using #define macros, have been converted to an enumerated type (enum).
Related concept: Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels.
HAL ICACHE ways selection constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define ICACHE_1WAY
#define ICACHE_2WAYS
|
typedef enum
{
HAL_ICACHE_ASSOCIATIVITY_1WAY,
HAL_ICACHE_ASSOCIATIVITY_2WAYS
} hal_icache_associativity_t;
|
HAL ICACHE remapped region number constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define ICACHE_REGION_0
#define ICACHE_REGION_1
#define ICACHE_REGION_2
#define ICACHE_REGION_3
|
typedef enum
{
HAL_ICACHE_REGION_0,
HAL_ICACHE_REGION_1,
HAL_ICACHE_REGION_2,
HAL_ICACHE_REGION_3
} hal_icache_region_t;
|
HAL ICACHE remapped region size constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define ICACHE_REGIONSIZE_2MB
#define ICACHE_REGIONSIZE_4MB
#define ICACHE_REGIONSIZE_8MB
#define ICACHE_REGIONSIZE_16MB
#define ICACHE_REGIONSIZE_32MB
#define ICACHE_REGIONSIZE_64MB
#define ICACHE_REGIONSIZE_128MB
|
typedef enum
{
HAL_ICACHE_REGION_SIZE_2MBYTES,
HAL_ICACHE_REGION_SIZE_4MBYTES,
HAL_ICACHE_REGION_SIZE_8MBYTES,
HAL_ICACHE_REGION_SIZE_16MBYTES,
HAL_ICACHE_REGION_SIZE_32MBYTES,
HAL_ICACHE_REGION_SIZE_64MBYTES,
HAL_ICACHE_REGION_SIZE_128MBYTES
} hal_icache_region_size_t;
|
HAL ICACHE remapped traffic route constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define ICACHE_MASTER1_PORT
#define ICACHE_MASTER2_PORT
|
typedef enum
{
HAL_ICACHE_MASTER1_PORT,
HAL_ICACHE_MASTER2_PORT
} hal_icache_master_port_t;
|
HAL ICACHE remapped output burst type constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define ICACHE_OUTPUT_BURST_WRAP
#define ICACHE_OUTPUT_BURST_INCR
|
typedef enum
{
HAL_ICACHE_BURST_WRAP,
HAL_ICACHE_BURST_INCR
} hal_icache_region_burst_t;
|
Note
The following defined ICACHE constants have been updated by adding the
HAL_
prefix to each define name.
Related concept: Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions).
HAL ICACHE monitor type constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define ICACHE_MONITOR_HIT_MISS
#define ICACHE_MONITOR_HIT
#define ICACHE_MONITOR_MISS
|
#define HAL_ICACHE_MONITOR_HIT
#define HAL_ICACHE_MONITOR_MISS
#define HAL_ICACHE_MONITOR_ALL
|
Note
For the following ICACHE constants, which were previously defined using
#define
directive , have been converted to LL macros.
Related concept: Define statements and enumerations redirected to LL equivalents
HAL ICACHE interrupts constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define ICACHE_IT_BUSYEND
#define ICACHE_IT_ERROR
|
#define LL_ICACHE_IER_BSYENDIE
#define LL_ICACHE_IER_ERRIE
|
HAL ICACHE flags constants ¶
|
HAL1 |
HAL2 |
|---|---|
#define ICACHE_FLAG_BUSY
#define ICACHE_FLAG_BUSYEND
#define ICACHE_FLAG_ERROR
|
#define LL_ICACHE_SR_BUSYF
#define LL_ICACHE_SR_BSYENDF
#define LL_ICACHE_SR_ERRF
|